Hi vj Cool,
I would think so. You might just send some Console Script Commands to KFLOP.
Does the KFlopConsole Example run and communicate to KFLOP?
Can you enter a script command like "ClearBit47" to tun off an LED on KFLOP?
Regards TK
Group: DynoMotion |
Message: 11927 |
From: vj Cool |
Date: 7/22/2015 |
Subject: Re: Raspberry pi 2 KmotionX |
Hi Tk, Thank you for the reply, yes i could, the command "ClearBit47" did to turn off an LED on KFLOP.
Let me explain to you what i am planning to do. 1) i have a IMU sensor that able to compute a required degree of angle into a textfile. 2) My rpi 2 has RT-Linux installed and i am trying to create a program which would be able to read the textfile and uses the data from the textfile to run the servo motor.
before that i need to set the peak current limit for my DC servo motor.
WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT0,11); WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT1,11);
because my motor has the current threshold of 12.5amp.
So how could i create a C program which has the capability to execute all those requirements?
On Wednesday, July 22, 2015 3:42 PM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi vj Cool,
I would think so. You might just send some Console Script Commands to KFLOP.
Does the KFlopConsole Example run and communicate to KFLOP?
Can you enter a script command like "ClearBit47" to tun off an LED on KFLOP?
Regards TK
Group: DynoMotion |
Message: 11936 |
From: vj Cool |
Date: 7/22/2015 |
Subject: Re: Raspberry pi 2 KmotionX |
Hi Tk, Thank you for the reply, yes i could, the command "ClearBit47" did to turn off an LED on KFLOP.
Let me explain to you what i am planning to do. 1) i have a IMU sensor that able to compute a required degree of angle into a textfile. 2) My rpi 2 has RT-Linux installed and i am trying to create a program which would be able to read the textfile and uses the data from the textfile to run the servo motor.
before that i need to set the peak current limit for my DC servo motor.
WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT0,11); WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT1,11);
because my motor has the current threshold of 12.5amp.
So how could i create a C program which has the capability to execute all those requirements in KMotionX. I could run those requirements in my Windows based system but i am not sure how to run a C program in KMotionX in raspberry PI2
On Wednesday, July 22, 2015 3:42 PM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi vj Cool,
I would think so. You might just send some Console Script Commands to KFLOP.
Does the KFlopConsole Example run and communicate to KFLOP?
Can you enter a script command like "ClearBit47" to tun off an LED on KFLOP?
Regards TK
Group: DynoMotion |
Message: 11940 |
From: Tom Kerekes |
Date: 7/22/2015 |
Subject: Re: Raspberry pi 2 KmotionX |
Hi vj Cool,
You might just want to use a MS Windows Box to Flash a program to KFLOP's Thread #1 that might initialize all the Axes and enable the Peak Current Limits. From Linux you could then just execute the Flashed Program by sending a "Execute1" Script command.
You might be able to Compile/Download/Execute the Program from Linux but I'm not sure how well that has been debugged under Linux under your platform.
It is also possible to set the SnapAmp Peak Current commands with FPGA Console Script Commands of:
where XX is the current level for side A and YY is the current level for side B
FPGA 88 XX;FPGA 11 0;FPGA 89 YY;FPGA 11 0
You might then have a C/C++ program in Linux to read your text file and send MoveExp console commands to KFLOP to move your Axis (using KFlopConsole as a Linux base example)
HTH Regards TK
From: "vj Cool vjbaskar1986@... [DynoMotion]" <DynoMotion@yahoogroups.com> To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com> Sent: Wednesday, July 22, 2015 1:33 PM Subject: Re: [DynoMotion] Raspberry pi 2 KmotionX
Hi Tk, Thank you for the reply, yes i could, the command "ClearBit47" did to turn off an LED on KFLOP.
Let me explain to you what i am planning to do. 1) i have a IMU sensor that able to compute a required degree of angle into a textfile. 2) My rpi 2 has RT-Linux installed and i am trying to create a program which would be able to read the textfile and uses the data from the textfile to run the servo motor.
before that i need to set the peak current limit for my DC servo motor.
WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT0,11); WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT1,11);
because my motor has the current threshold of 12.5amp.
So how could i create a C program which has the capability to execute all those requirements in KMotionX. I could run those requirements in my Windows based system but i am not sure how to run a C program in KMotionX in raspberry PI2
On Wednesday, July 22, 2015 3:42 PM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi vj Cool,
I would think so. You might just send some Console Script Commands to KFLOP.
Does the KFlopConsole Example run and communicate to KFLOP?
Can you enter a script command like "ClearBit47" to tun off an LED on KFLOP?
Regards TK
Group: DynoMotion |
Message: 11942 |
From: vj Cool |
Date: 7/22/2015 |
Subject: Re: Raspberry pi 2 KmotionX |
Hi TK,
Thank you for the reply. Sorry i found an example folder under KMotionX The example folder could be found in the following directory:- KMotionX/KMotionX/examples/other/test.cpp
the executable file for test.cpp can be found in the following directory:- KMotionX/bin
The executable file for test.cpp is testRunner. When i execute ./testRunner.
the function testCheckForReady() which runs the command KM->CheckForReady show the output "CheckForReady succeded" then there are few warning commands received which followed after KM->CheckForReady
-------------AfxMessageBox: OPTION: DSP_KFLOP.out Date Stamp Doesn't match KFLOP Firmware
Before compiling programs please use Flash/config Screen and select: Download New Version. This will install compatible Firmware with this version of software
KFLOP 4.27 Build 19:07:19 Oct 28 2011 KFLOP Firmware KFLOP 4.32 Build 20:31:12 Apr 12 2014 DSP_KFLOP.out file----------------------
331792 -------------------------------------------------------------------------------------------------------------------- >OK?
and when the KM->CheckKMotionVersion it fails
can you help?
On Thursday, July 23, 2015 6:54 AM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi vj Cool,
You might just want to use a MS Windows Box to Flash a program to KFLOP's Thread #1 that might initialize all the Axes and enable the Peak Current Limits. From Linux you could then just execute the Flashed Program by sending a "Execute1" Script command.
You might be able to Compile/Download/Execute the Program from Linux but I'm not sure how well that has been debugged under Linux under your platform.
It is also possible to set the SnapAmp Peak Current commands with FPGA Console Script Commands of:
where XX is the current level for side A and YY is the current level for side B
FPGA 88 XX;FPGA 11 0;FPGA 89 YY;FPGA 11 0
You might then have a C/C++ program in Linux to read your text file and send MoveExp console commands to KFLOP to move your Axis (using KFlopConsole as a Linux base example)
HTH Regards TK
From: "vj Cool vjbaskar1986@... [DynoMotion]" <DynoMotion@yahoogroups.com> To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com> Sent: Wednesday, July 22, 2015 1:33 PM Subject: Re: [DynoMotion] Raspberry pi 2 KmotionX
Hi Tk, Thank you for the reply, yes i could, the command "ClearBit47" did to turn off an LED on KFLOP.
Let me explain to you what i am planning to do. 1) i have a IMU sensor that able to compute a required degree of angle into a textfile. 2) My rpi 2 has RT-Linux installed and i am trying to create a program which would be able to read the textfile and uses the data from the textfile to run the servo motor.
before that i need to set the peak current limit for my DC servo motor.
WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT0,11); WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT1,11);
because my motor has the current threshold of 12.5amp.
So how could i create a C program which has the capability to execute all those requirements in KMotionX. I could run those requirements in my Windows based system but i am not sure how to run a C program in KMotionX in raspberry PI2
On Wednesday, July 22, 2015 3:42 PM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi vj Cool,
I would think so. You might just send some Console Script Commands to KFLOP.
Does the KFlopConsole Example run and communicate to KFLOP?
Can you enter a script command like "ClearBit47" to tun off an LED on KFLOP?
Regards TK
Group: DynoMotion |
Message: 11943 |
From: Tom Kerekes |
Date: 7/22/2015 |
Subject: Re: Raspberry pi 2 KmotionX |
Hi vj Cool,
Looks like you have old Version 4.27 Firmware in your KFLOP.
Using a MS Windows Box Run KMotion Version 4.32 and use the Config/Flash | New Version Button flash it with Firmware Version 4.32 so it matches the Version in Linux.
Regards TK
Group: DynoMotion |
Message: 11944 |
From: vj Cool |
Date: 7/22/2015 |
Subject: Re: Raspberry pi 2 KmotionX |
hi TK,
O WOW. perfecto. thank you so much!!! Finally i could run KMotionX in raspberry pi 2 using RT-Linux!!! I am very happy now.
Thank you so much again
On Thursday, July 23, 2015 9:34 AM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi vj Cool,
Looks like you have old Version 4.27 Firmware in your KFLOP.
Using a MS Windows Box Run KMotion Version 4.32 and use the Config/Flash | New Version Button flash it with Firmware Version 4.32 so it matches the Version in Linux.
Regards TK
Group: DynoMotion |
Message: 11945 |
From: vj Cool |
Date: 7/22/2015 |
Subject: Re: Raspberry pi 2 KmotionX |
Hi TK,
Is it possible for me to run
WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT0,11); WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT1,11);
in a C program? yes i know in the previous email you advice me to set using MS Windows Box but now i could able to run C program in KMotionX.
Any advice?
On Thursday, July 23, 2015 9:34 AM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi vj Cool,
Looks like you have old Version 4.27 Firmware in your KFLOP.
Using a MS Windows Box Run KMotion Version 4.32 and use the Config/Flash | New Version Button flash it with Firmware Version 4.32 so it matches the Version in Linux.
Regards TK
Group: DynoMotion |
Message: 11946 |
From: Tom Kerekes |
Date: 7/22/2015 |
Subject: Re: Raspberry pi 2 KmotionX |
Hi vj Cool,
Is the test.cpp program successfully calling:
void testCompile(){ char file[256]; strcpy(file,KM->getInstallRoot()); strcat(file,"/C Programs/FanOFF.c"); KM->CompileAndLoadCoff(file, 1); }
??
If so, then it is compiling, downloading, executing the /C Program/FanOFF.c.
Change the filename to a C Program of your own that will enable the SnapAmp.
There shouls already be one called /C Program/SnapAmp/Set High Cur Limits.c
Regards TK
From: "vj Cool vjbaskar1986@... [DynoMotion]" <DynoMotion@yahoogroups.com> To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com> Sent: Wednesday, July 22, 2015 7:16 PM Subject: Re: [DynoMotion] Raspberry pi 2 KmotionX
Hi TK,
Is it possible for me to run
WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT0,11); WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT1,11);
in a C program? yes i know in the previous email you advice me to set using MS Windows Box but now i could able to run C program in KMotionX.
Any advice?
On Thursday, July 23, 2015 9:34 AM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi vj Cool,
Looks like you have old Version 4.27 Firmware in your KFLOP.
Using a MS Windows Box Run KMotion Version 4.32 and use the Config/Flash | New Version Button flash it with Firmware Version 4.32 so it matches the Version in Linux.
Regards TK
Group: DynoMotion |
Message: 11947 |
From: vj Cool |
Date: 7/22/2015 |
Subject: Re: Raspberry pi 2 KmotionX |
Hi TK,
NO... void testCompile(){ char file[256]; strcpy(file,KM->getInstallRoot()); strcat(file,"/C Programs/FanOFF.c"); KM->CompileAndLoadCoff(file, 1); If(err[0]){ printf("error %s", err);
} }
The output was:- error ?v [?v
Is there anyway to fix the problem?
On Thursday, July 23, 2015 10:42 AM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi vj Cool,
Is the test.cpp program successfully calling:
void testCompile(){ char file[256]; strcpy(file,KM->getInstallRoot()); strcat(file,"/C Programs/FanOFF.c"); KM->CompileAndLoadCoff(file, 1); }
??
If so, then it is compiling, downloading, executing the /C Program/FanOFF.c.
Change the filename to a C Program of your own that will enable the SnapAmp.
There shouls already be one called /C Program/SnapAmp/Set High Cur Limits.c
Regards TK
From: "vj Cool vjbaskar1986@... [DynoMotion]" <DynoMotion@yahoogroups.com> To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com> Sent: Wednesday, July 22, 2015 7:16 PM Subject: Re: [DynoMotion] Raspberry pi 2 KmotionX
Hi TK,
Is it possible for me to run
WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT0,11); WriteSnapAmp(SNAP0+SNAP_PEAK_CUR_LIMIT1,11);
in a C program? yes i know in the previous email you advice me to set using MS Windows Box but now i could able to run C program in KMotionX.
Any advice?
On Thursday, July 23, 2015 9:34 AM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote: | | | | | | | | | | | | | | | | | | | |